package com.xiaoshuidi.cloud.module.member.pojo.activities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@TableName(value = "member_activity_enroll", autoResultMap = true)
@KeySequence("member_activity_enroll_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberActivitiesEnroll extends TenantBaseDO {
    private static final long serialVersionUID = -8311268698711933225L;
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "活动Id")
    private Long activityId;

    @Schema(description = "活动项名称json")
    private String fillItemDetail;

    @Schema(description = "核销码")
    private String verifyCode;

//    @Schema(description = "核销码base64图片")
//    private String verifyPic;

    @Schema(description = "核销人")
    private String verifiedBy;

    @Schema(description = "核销时间")
    private LocalDateTime verifiedTime;

    @Schema(description = "核销状态1待核销2已核销3已失效")
    private Integer status;
}
